<% title "Milestones" %>

<table>
  <tr>
    <th>Title</th>
    <th>Started On</th>
    <th>Completed On</th>
    <th>Description</th>
    <th>Status Code</th>
    <th>Project</th>
  </tr>
  <% for milestone in @milestones %>
    <tr>
      <td><%=h milestone.title %></td>
      <td><%=h milestone.started_on %></td>
      <td><%=h milestone.completed_on %></td>
      <td><%=h milestone.description %></td>
      <td><%=h milestone.status_code %></td>
      <td><%=h milestone.project_id %></td>
      <td><%= link_to "Edit", edit_milestone_path(milestone) %></td>
      <td><%= link_to "Destroy", milestone, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<p><%= link_to "New Milestone", new_milestone_path %></p>
